package shop.ynubeggar.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@ApiModel(value = "CreateProductRequest",description = "商品新增请求")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CreateProductRequest {

    @ApiModelProperty(value = "名称", example = "珍珠奶茶")
    private String title;

    @ApiModelProperty(value = "封面图", notes = "base64字符串")
    private String coverImg;

    @ApiModelProperty(value = "详情", example = "一杯好喝的珍珠奶茶")
    private String detail = "";

    @ApiModelProperty(value = "新价格", example = "14")
    private BigDecimal price;

    @ApiModelProperty(value = "老价格", example = "14")
    private BigDecimal oldPrice = price;

    @ApiModelProperty(value = "库存", example = "100")
    private Integer stock = 0;

    @ApiModelProperty(value = "类别", example = "1")
    private Integer category;
}
